package org.openwebtop.sunshine.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;

@Entity(name = "user_permission")
public class UserPermission {
	@Id
	@Column
	private String username;

	@Id
	@Enumerated(EnumType.ORDINAL)
	@Column(name = "permission")
	private PermissionType permissionType;

	public UserPermission() {
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public PermissionType getPermissionType() {
		return permissionType;
	}

	public void setPermissionType(PermissionType permissionType) {
		this.permissionType = permissionType;
	}

}
